﻿using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Design
{
    /// <summary>
    /// 动态表单
    /// </summary>
    [SugarTable("Design_Form")]
    public class DesignForm : BaseEntity<long>
    {
        /// <summary>
        /// 表单名称
        /// </summary>
        public string Name { get; set; }
        ///// <summary>
        ///// 数据源ID
        ///// </summary>
        //[SugarColumn(IsNullable = true)]
        //public long? SourceId { get; set; }
        [SugarColumn(IsNullable = true)]
        public string SourceCode { get; set; }
        /// <summary>
        /// 数据源名称
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string SourceName { get;set; }
        /// <summary>
        /// 表单配置
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "nvarchar(max)", IsJson = false)]
        public string FormConfig { get; set; }
        /// <summary>
        /// 表单样式
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "nvarchar(max)", IsJson = false)]
        public string FormStyle { get; set; }
        /// <summary>
        /// 表单字段
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "nvarchar(max)", IsJson = false)]
        public string FormItemList { get; set; }
    }
}
